<?php
namespace app\company\controller;
use think\Controller;

class Index extends Base
{	
	public function index(){

		$count = [
				'company' => db('company')->count(),
				'outfall' => db('outfall')->count(),
				'sources' => db('sources')->count(),
				'doctech' => db('documentTechnology')->count(),
				'docproject' => db('documentProject')->count(),
				'docworking' => db('documentWorking')->count(),
				'doctechMonth' => db('documentTechnology')->whereTime('create_time', 'month')->count(),
				'docprojectMonth' => db('documentProject')->whereTime('create_time', 'month')->count(),
				'docworkingMonth' => db('documentWorking')->whereTime('create_time', 'month')->count(),

		];

		$this->assign('count',$count);
		return $this->fetch();
	}

	
}